import React, { forwardRef, useImperativeHandle } from 'react'

const Children = forwardRef((props, ref) => {
  useImperativeHandle(ref, () => ({
    focus: () => {
      console.log(123)
    },
  }))
  return <div ref={ref}>我是子组件</div>
})

export default Children
